import request from "@/utils/request";
// 短信登录
export const userMobileLogin = ({ mobile, code }) => {
  return request("/login/code", "post", { mobile, code });
};

// 获取短信登录验证码
export const userMobileLoginMsg = (mobile) => {
  return request("/login/code", "get", { mobile });
};
// 账号密码登录
export const userAccountLogin = ({ account, password }) =>
  request("/login", "post", { account, password });

